﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AdminStyem.Application
{
    public class APIResult<T>
    {
        public ResultCode Code { get; set; }

        public string Message { get; set; }

        public T Data { get; set; }
    }

    public enum ResultCode
    {
        登录成功 = 100,
        登录失败 = 101,
        添加成功 = 200,
        添加失败 = 201,
        查询成功 = 300,
        查询失败 = 301,
        删除成功 = 400,
        删除失败 = 401,
        修改成功 = 500,
        修改失败 = 501,
    }
    public class APiPaging<T>
    {
        public int TotalCount { get; set; }
        public int TotalPage { get; set; }

        public List<T> list { get; set; }

    }
}
